package top.wyix.module.test.controller.admin.framework.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.wyix.framework.common.validation.mobile.Mobile;

import javax.validation.constraints.NotEmpty;

/**
 * @author wangdx
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ValDemoReq {
    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma")
    @NotEmpty(message = "手机号不能为空")
    @Mobile
    private String mobile;

    @Schema(description = "短信验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotEmpty(message = "验证码不能为空")
    private String code;
}
